//
//  ResponseManager+LogonInfo.m
//  一点互助
//
//  Created by 张泊秋 on 16/8/23.
//  Copyright © 2016年 zhangboqiu. All rights reserved.
//

#import "ResponseManager+LogonInfo.h"
#import "URLDefine.h"




@implementation ResponseManager (LogonInfo)

+ (void)getUserInfoLogonUserName:(NSString *)userName passWord:(NSString *)passWord completionHandler:(RequestCompletion)completionHandler {
    NSMutableDictionary *parameters = [NSMutableDictionary dictionary];
    parameters[@"mobile"] = userName;
    parameters[@"password"] = passWord;
    
    [self startPostRequestWithURLString:kLogonURL parameters:parameters completionHandler:^(FBResponse *response) {
        
        completionHandler(response);
        
    }];
    
    
    
}
+ (void)getUserInfoLoginUserName:(NSString *)userName passWord:(NSString *)passWord completionHandler:(RequestCompletion)completionHandler {
    NSMutableDictionary *parameters = [NSMutableDictionary dictionary];
    parameters[@"username"] = userName;
    parameters[@"password"] = passWord;
    [self startPostRequestWithURLString:kLoginURL parameters:parameters completionHandler:^(FBResponse *response) {
        
        completionHandler(response);
        
    }];
    
}


@end
